<?php
	echo $this->partial('partial/circuits.phtml',array('circuits' => $this->circuits, 'id' => $this->id));
	$this->title = 'Detail d\'un circuit';
	$this->headTitle($this->title);
	if(!is_null($this->circuit))
	{
		echo "<div class='identite'><img src='".$this->url(array('path'=>urlencode($this->serverUrl().$this->baseUrl()."/images/circuit/".$this->circuit->getCirAdresseImage()),'width'=>84,'height'=>84),'thumb')."' alt='".$this->circuit->getCirNom()."'/></div>";
		echo "<b>Nom : </b>".$this->circuit->getCirNom()."<br/>";
		echo "<b>Longueur : </b>".$this->circuit->getCirLongueur()." m<br/>";
		echo "<b>Nombre de spectateurs : </b>".$this->circuit->getCirNbSpectateurs()."<br/>";
		echo "<b>Pays : </b>".$this->circuit->getPays()->getPayNom()."<br/>";
		echo "<br/>";
		echo $this->circuit->getCirText();
		
	}
	else
	{
		//throw new Zend_Controller_Action_Exception('Page not found.',404);
		echo $this->partial('partial/errorbox.phtml',array('message' => "Le circuit est introuvable."));
	}
?>